package com.demo.studentmanager.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.demo.studentmanager.dto.AttendanceListDto;
import com.demo.studentmanager.dto.AttendanceUpdDto;
import com.demo.studentmanager.entity.Attendance;
import com.demo.studentmanager.vo.AttendanceVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author lzx
 */
@Repository
public interface AttendanceMapper extends BaseMapper<Attendance> {

    //查看出勤人数
    public IPage<AttendanceVo> getAutendanceStatus(IPage<AttendanceVo> page, @Param("attendanceSearch") AttendanceListDto attendanceListDto);


    //根据学号修改签到状态
    public void updateStatus(@Param("AttendanceUp") AttendanceUpdDto upDto);

}
